// 定义模型

const Sequelize = require('sequelize');

const sequelize = require('../lib/sequelize')

const User = sequelize.define('user', {
    id: {
        type: Sequelize.INTEGER,
        autoIncrement: true,
        primaryKey: true
    },
    name: Sequelize.STRING(100),
    password: Sequelize.STRING(100),
}, {
    tableName: 't_user'
});

// User.sync({force: true})

module.exports = User